package com.itheima.dao;

import com.itheima.domain.User;

import java.sql.SQLException;

public interface UserDao {
    User query(User user) throws SQLException;

    int addUser(User user) throws SQLException;

    int deleteUser(User user);

    int updateUser(User user);

    User queryUsername(User user) throws SQLException;

}
